package com.example.learningnote.basic;

public class Teacher extends Person{
    private String courseware;
    Teacher(String name, int age, String sex , String courseware) {
        super(name, age, sex);
        this.courseware = courseware;
    }

    public String getCourseware() {
        return courseware;
    }

    public void setCourseware(String courseware) {
        this.courseware = courseware;
    }

    public String run(){
        return this.getName() +"准备了" +this.getCourseware() + "课件后" +"去跑步";
    }


    @Override
    public String eat() {
        return super.eat();
    }

    @Override
    public void speak() {

    }
}
